// components/hotLive/index.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        hotLive: {
            type: Array
        }
    },
    data: {
        
    },
    methods: {
        onLiveTap (event) {
            let name = event.currentTarget.dataset.name
            let pic = event.currentTarget.dataset.pic
            let id = event.currentTarget.dataset.id
            let status = event.currentTarget.dataset.status
            let zbactid = event.currentTarget.dataset.zbactid
            // hasLive 1为待开始 2为进行中 3为已结束
            let valueArr = {
                id: id,
                status: status,
                zbactid: zbactid,
                name: name,
                pic: pic
            }
            this.triggerEvent('onLiveTap', valueArr)
        }
    }
})